@SET TEMPLATEDIR="c:\program files\common files\microsoft shared\web server extensions\12\Template"
@SET STSADM="c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm"
@SET GACUTIL="c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe"

Echo ************* Making Solution ************* 
@echo off
if EXIST package\SPRSS.wsp del package\SPRSS.wsp
makecab /f Solution\cab.ddf

Echo ************* Retracting solution ************* 
%STSADM% -o retractsolution -name sprss.wsp -immediate -allcontenturls
%STSADM% -o execadmsvcjobs

Echo ************* Deleting solution ************* 
%STSADM% -o deletesolution -name sprss.wsp
%STSADM% -o execadmsvcjobs

Echo ************* Adding solution ************* 
%STSADM% -o addsolution -filename Package\SPRSS.wsp
%STSADM% -o execadmsvcjobs

Echo ************* Deploying solution ************* 
%STSADM% -o deploysolution -name sprss.wsp -immediate -allowgacdeployment -url http://smalikmoss2/ -force
%STSADM% -o execadmsvcjobs
 
IISRESET